<?php echo $this->doctype(); ?>
<html>
   <head>
        <?php echo $this->headTitle() ?>
        <?php echo $this->headMeta()->appendHttpEquiv('Content-Type', 'text/html; charset=UTF-8')
                                    ->appendHttpEquiv('Content-Language', 'en-US'); ?>
        <?php echo $this->headScript()->setFile("/js/jquery/jquery1.6.4.js", 'text/javascript') ?>
        <?php echo $this->headScript()->setFile("/js/login.js", 'text/javascript') ?>
        <?php echo $this->headLink()->setStylesheet("/css/style.css", "screen") ?>
   </head>
   <body>
        <?php echo $this->render('_header.phtml'); ?>
        <div id="content">
            <div id="content_inner">
               <?php echo $this->layout()->content; ?>
            </div>

            <div id="sidebar">
             <?php if((bool)$this->placeholder('logged')->getValue() === true ) {?>
                <fieldset>
                    <legend>Quit:</legend>
                    <a id="logout" href="/index/logout"> Logout</a>
                </fieldset>
                <fieldset id="menu_sidebar">
                    <legend>Menu:</legend>
                    <?php echo $this->navigation()->menu(); ?>
                    <?php //echo $this->navigation()->breadcrumbs(); ?>
                </fieldset>
                <fieldset>
                    <legend>Places:</legend>
                    <?php echo $this->render('_right_sidebar.phtml'); ?>
                </fieldset>

                <?php } else {?>
                <fieldset>
                   <legend>Guest Room:</legend>
                   <a id="login" href="#"> Login</a>
                   <a id="register" href="/index/register"> Register </a>
                </fieldset>
                <div id="block_login"></div>
                <?php }?>
            </div>
        </div>
        <?php echo $this->render('_footer.phtml'); ?>
    </body>

</html>
